package Day01;

import java.util.Scanner;

public class gwccc {
    Scanner sc=new Scanner(System.in);
    public static void login(int password) {
        int mm=1314;
        Scanner sc=new Scanner(System.in);
        while ( true) {
            if (password == mm ) {
                System.out.println("登录成功");
                System.out.println("-♥-♥-♥-♥-♥欢迎来到法克超市♥-♥-♥-♥-♥");
                break;
            } else {
                System.out.println("密码错误");
                System.out.println("请重新输入密码");
                password = sc.nextInt();
            }
        }
    }
    public static void choose() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请选择商品的编号");
        int prices = sc.nextInt();
        switch (prices) {
            case 1:
                System.out.println("您已选择15999元的iPhone14 pro max");
                break;
            case 2:
                System.out.println("您已选择58元的沐浴露");
                break;
            case 3:
                System.out.println("您已选择398元的篮球");
                break;
            case 4:
                System.out.println("您已选择9.9元的鸡腿");
                break;
            case 5:
                System.out.println("您已选择3元的拿铁咖啡");
                break;
        }
    }
 public static void buy() {
     Scanner sc = new Scanner(System.in);
     int number, price;
     while (true) {
         System.out.println("请输入数量");
         number = sc.nextInt();
         System.out.println("请输入购买商品的价格");
         price = sc.nextInt();
         System.out.println("恭喜您已成功支付" + number * price + "元");
         System.out.println(" 欢迎下次光临 ");
       }
    }
    public static void care(){
        System.out.println("本超市有如下商品");
        System.out.println("如是会员用户享9.5折，并输入vip密码");
    }
  }
